import name from './base/name'
import papers from './base/papers'
import sex from './base/sex'
import address from './base/address'
import profile from './base/profile'
import birth from './base/birth'
import mobile from './base/mobile'
import sportsman from './base/sportsman'
import entry from './base/entry'
import input from './diy/input'
import textarea from './diy/textarea'
import number from './diy/number'
import radio from './diy/radio'
import check from './diy/check'
import time from './diy/time'
import pic from './diy/pic'

function createYdrMenu() {
  return [
    {
      name: 'group1',
      list: [
        name,
        sex,
        papers,
        address,
        profile,
        birth,
        mobile,
        sportsman,
        entry
      ]
    },
    {
      name: 'group2',
      list: [input, textarea, number, radio, check, time, pic]
    }
  ]
}
const rule = [
  name,
  papers,
  sex,
  address,
  profile,
  birth,
  mobile,
  sportsman,
  input,
  textarea,
  number,
  radio,
  check,
  time,
  pic,
  entry
]
export { createYdrMenu, rule }
